﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="TimKiemNganhTrung.ascx.cs"
    Inherits="admin_TimKiemNganhTrung" %>
<%@ Register TagPrefix="ComponentArt" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Register Assembly="eWorld.UI" Namespace="eWorld.UI" TagPrefix="ew" %>
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
    <tr>
        <td style="background-color: White;" valign="top">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td align="center" valign="top" style="height: 670px;">
                        <table cellspacing="0" cellpadding="1" width="100%" border="0">
                            <tr>
                                <td align= "left" style="width:50%">
                                    <asp:Panel ID="pnTruong" runat="server" GroupingText= "Danh sách trường" 
                                        Width="99%" >
                                        <table cellspacing="0" cellpadding="1" width="100%" border="0">
                                              <tr align = "left">
                                                <td  style = "width: 15%">
                                                    <label style = "width :100%">Tên trường</label>
                                                </td>
                                                <td  style = "width: 65%">
                                                    <asp:TextBox  ID="m_txt_ten_truong" runat="server" Width = "95%"></asp:TextBox>
                                                </td>
                                               
                                                <td  style = "width: 15%">
                                                    <asp:Button ID="btnTimTruong" runat="server" Width="98%"  Text="Tìm Kiếm" 
                                                       CssClass="cssButton" onclick="btnTimTruong_Click"/>
                                                </td>
                                             
                                              </tr>
                                              <tr>
                                              <td>
                                                &nbsp;
                                                </td>
                                              </tr>  
                                              <tr align="left" > 
                                                <td colspan="3">
		                                            <asp:ListBox ID="lbTruong" runat="server" SelectionMode="Single" AutoPostBack="true"
                                                        Width ="100%" onselectedindexchanged="lbTruong_SelectedIndexChanged" Height="270px" />
                                                </td>  
                                              </tr>                                      
                                        </table>
                                    </asp:Panel>
                                </td>
                                <td align = "right" style="width:50%">
                                    <asp:Panel ID="pnNganh" runat="server" GroupingText= "Danh sách ngành" Width="99%" >
                                        <table cellspacing="0" cellpadding="1" width="100%" border="0">
                                              <tr align = "left">
                                                <td  style = "width: 15%">
                                                    <label style = "width :100%">Tên ngành</label>
                                                </td>
                                                <td  style = "width: 65%">
                                                    <asp:TextBox ID="m_txt_ten_nganh" runat="server" Width = "95%"></asp:TextBox>
                                                </td>
                                               
                                                <td  style = "width: 15%">
                                                    <asp:Button ID="btnTimNganh" runat="server" Width="98%"  Text="Tìm Kiếm" 
                                                      CssClass="cssButton"   onclick="btnTimNganh_Click"/>
                                                </td>
                                             
                                              </tr>
                                              <tr>
                                              <td>
                                                &nbsp;
                                                </td>
                                              </tr>  
                                              <tr align="left" > 
                                                <td colspan="3">
		                                            <asp:ListBox ID="lbNganh" runat="server" SelectionMode="Single" 
                                                    Width ="100%" Height="270px"/>
                                                </td>  
                                              </tr> 
                                          
                                        </table>
                                    </asp:Panel>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr align="right">
                                <td colspan="2">
                                    <asp:Button ID="m_cmd_hien_thi_nganh_trung" runat="server" 
                                        Text="Hiển thị danh sách ngành trùng" ForeColor="White" CssClass="cssLongButton"
                                        onclick="m_cmd_hien_thi_nganh_trung_Click" />
                                </td>
                            </tr>
                            <tr align="center">
                                <td colspan="2">
                                    <asp:Label ID="m_thong_bao" runat="server" Width="400px" ></asp:Label>
                                </td>
                            </tr>
                            <tr align="right">
                                <td colspan="2">
                                    
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:GridView ID="grvNganhTrung" runat="server" Width="70%" CellPadding="3" AutoGenerateColumns="False"
                                        RowStyle-CssClass="cssGridCell" AlternatingRowStyle-CssClass="cssGridAlterCell"
                                        SelectedRowStyle-CssClass="cssSelectedRow" EmptyDataText="Ngành trên không cùng khối ngành nào với các ngành của TOPICA"
                                        PageSize="16" PagerStyle-HorizontalAlign="Center" EmptyDataRowStyle-HorizontalAlign ="Center"
                                        EnableModelValidation="True" BackColor="White" BorderColor="#E7E7FF" 
                                        BorderStyle="None" BorderWidth="1px">
                                        <EditRowStyle CssClass="cssGridEdit"></EditRowStyle>
                                        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                                        <HeaderStyle BackColor="#810C15" Font-Bold="True" ForeColor="#F7F7F7" />
                                        <PagerSettings Position="TopAndBottom" />
                                        <AlternatingRowStyle CssClass="cssGridAlterCell" BackColor="#F7F7F7"></AlternatingRowStyle>
                                        <Columns>
                                            <asp:TemplateField HeaderText="STT"
                                                HeaderStyle-ForeColor="White" ItemStyle-HorizontalAlign="Center">
                                                <HeaderStyle ForeColor="White"></HeaderStyle>
                                                <ItemTemplate><%# Container.DataItemIndex  + 1 %></ItemTemplate>
                                                <ItemStyle HorizontalAlign="Center" Width="4%"></ItemStyle>
                                            </asp:TemplateField>
                                            <asp:BoundField HeaderText="Tên ngành" DataField="TEN_NGANH_TOPICA" 
                                                 ControlStyle-Font-Underline="false"
                                                HeaderStyle-ForeColor="White" ItemStyle-HorizontalAlign="Left" ControlStyle-Width="100px">
                                                <ControlStyle Font-Underline="False"></ControlStyle>
                                                <HeaderStyle ForeColor="White"></HeaderStyle>
                                                <ItemStyle Width="8%" />
                                            </asp:BoundField>                                                                                                                       
                                        </Columns>
                                        <PagerStyle HorizontalAlign="Right" CssClass="cssGridPager" BackColor="#810C15" 
                                            ForeColor="#4A3C8C"></PagerStyle>
                                        <RowStyle CssClass="cssGridCell" BackColor="#E7E7FF" ForeColor="#4A3C8C"></RowStyle>
                                        <SelectedRowStyle CssClass="cssSelectedRow" BackColor="#738A9C" 
                                            Font-Bold="True" ForeColor="#F7F7F7"></SelectedRowStyle>
                                    </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
